Companion

object Companion

Functions

Link copied to clipboard
fun <T> empty(): Option<T>

Returns None.

Link copied to clipboard
operator fun <T> invoke(value: T?): Option<T>

Returns Some if the value is not null or None if the value is null.